package com.xyoto.community.vo;

import com.xyoto.community.utils.PictureUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author coderFu
 * @create 2021/11/17
 */
@ApiModel("轮播图展示实体")
@Data
public class RotationChartVO {

    @ApiModelProperty("自增id")
    private Integer id;

    @ApiModelProperty("轮播图图片路径")
    private String path;

    @ApiModelProperty("轮播图链接")
    private String link;

    public void setPath(String path) {
        this.path = PictureUtils.addPrefix(path);
    }
}
